﻿<%@ Page Title="" Language="C#" MasterPageFile="~/dormitoryAdministrator/dormitoryAdministrator.Master" AutoEventWireup="true" CodeBehind="Annouce.aspx.cs" Inherits="WebApplication1.dormitoryAdministrator.Annouce" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style5 {
            left: 30px;
            height: 27px;
        }
        .auto-style6 {
            height: 27px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <table class="auto-style4" style="font-size:large;position: relative;top:50px;width:100%">
        <tr>
            <td colspan="2"  align="center" style="font-size:x-large" >公告发布</td>
        </tr>
        <tr>
            <td class="auto-style5" align="right">标题：</td>
            <td>
                <asp:TextBox ID="title" runat="server" Height="25px" Width="70%" ></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="ValidataGroup1" runat="server" ControlToValidate="title" ErrorMessage="标题不能为空" ForeColor="#CC3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" align="right">内容：</td>
            <td>
                <asp:TextBox ID="content" runat="server" Height="325px" Width="70%" TextMode="MultiLine"></asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ValidationGroup="ValidataGroup1" runat="server" ControlToValidate="content" ErrorMessage="内容不能为空" ForeColor="#CC3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
         <tr>
            <td class="auto-style5" align="right">上传附件：</td>
             <td ><asp:FileUpload ID="FileUpload1" runat="server" /></td>
        </tr>
         <tr>
            <td class="auto-style4" align="right" >发布人：</td>
            <td class="auto-style4">
                <asp:TextBox ID="author" runat="server" Height="25px" Width="70%"></asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ValidationGroup="ValidataGroup1"  runat="server" ControlToValidate="author" ErrorMessage="作者不能为空" ForeColor="#CC3300"></asp:RequiredFieldValidator>
            </td>
        </tr>
         <tr>
            <td class="auto-style5" colspan="2" align="center">
                <asp:Button ID="Button1" runat="server" Text="提交" Height="30px" Width="56px" OnClick="Button1_Click" ValidationGroup="ValidataGroup1"/>
            </td>
        </tr>
    </table>
</asp:Content>
